.eg-inventory-archive,
.eg-inventory-detail {
    box-sizing: border-box;
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: clamp(9rem, 12vw, 11rem) 24px 80px;
}

.eg-inventory-archive *,
.eg-inventory-detail * {
    box-sizing: border-box;
}

.eg-inventory-archive > header,
.eg-inventory-detail article > header {
    margin: 0 0 32px;
}

.eg-inventory-archive h1,
.eg-inventory-detail h1 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.08;
}

.eg-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 28px;
}

.eg-inventory-card {
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.eg-inventory-card img,
.eg-inventory-primary-image img,
.eg-inventory-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.eg-inventory-card h2 {
    margin: 18px 0 10px;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.2;
}

.eg-inventory-card-link {
    color: inherit;
    text-decoration: none;
}

.eg-inventory-detail article {
    max-width: 960px;
    margin: 0 auto;
}

.eg-inventory-primary-image {
    margin-bottom: 32px;
}

.eg-inventory-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.eg-inventory-pricing,
.eg-inventory-facts,
.eg-inventory-features,
.eg-inventory-description,
.eg-inventory-delivery {
    margin: 0 0 28px;
}

.eg-inventory-pricing {
    padding: 24px;
    border-radius: 14px;
    background: #f4f7f2;
}

.eg-inventory-pricing p:first-child {
    margin-top: 0;
    font-size: 1.35em;
}

.eg-inventory-pricing p:last-child {
    margin-bottom: 0;
}

.eg-inventory-facts dl {
    display: grid;
    grid-template-columns: minmax(120px, 0.45fr) 1fr;
    gap: 10px 22px;
    margin: 0;
}

.eg-inventory-facts dt {
    font-weight: 700;
}

.eg-inventory-facts dd {
    margin: 0;
}

.eg-inventory-status {
    display: inline-block;
    margin: 18px 0 0;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.eg-inventory-status-hold,
.eg-inventory-hold {
    color: #744700;
    background: #fff3cf;
}

.eg-inventory-status-sold {
    color: #7c1d1d;
    background: #fde8e8;
}

.eg-inventory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.eg-inventory-actions a,
.eg-inventory-card > p:last-child a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border: 2px solid #356d2f;
    border-radius: 999px;
    color: #fff;
    background: #356d2f;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.eg-inventory-actions a:hover,
.eg-inventory-actions a:focus-visible,
.eg-inventory-card > p:last-child a:hover,
.eg-inventory-card > p:last-child a:focus-visible {
    color: #356d2f;
    background: #fff;
}

@media (max-width: 767px) {
    .eg-inventory-archive,
    .eg-inventory-detail {
        padding: 7rem 18px 56px;
    }

    .eg-inventory-archive h1,
    .eg-inventory-detail h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .eg-inventory-facts dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .eg-inventory-facts dd {
        margin-bottom: 12px;
    }

    .eg-inventory-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .eg-inventory-actions a {
        width: 100%;
    }
}
