/* Inventory card partial styles */
/* ========= GTX Card Pro (scoped to this partial) ========= */
/* CRITICAL: allow flex child to shrink (otherwise nowrap still wraps in weird ways) */
.gtx-title-wrap,
.gtx-title-stack {
    min-width: 0;
}

/* force model/style to stay one line and ellipsize */
.gtx-trimline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* optional: ensure the make line also behaves well */
.gtx-truncate-1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gtx-card {
    border: 0 !important;
    border-radius: 1rem !important;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    transition: transform .14s ease, box-shadow .14s ease;
    background: #fff;
}

    .gtx-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 38px rgba(0,0,0,.20);
    }

.gtx-header {
    border: 0 !important;
    position: relative;
    padding: .65rem .75rem;
}

.gtx-title {
    font-size: clamp(1.06rem, 1.25vw, 1.18rem);
    font-weight: 600;
    line-height: 1.05;
}

.gtx-make-logo {
height: 38px;
}

.gtx-card .gtx-trimline {
line-height: 1.05;
}

.gtx-card .gtx-badges {
top: 2px;
}

.gtx-chip.liked {
display: none;
}

.gtx-card-copy {
max-width: 70%;
}

.gtx-subtitle {
    font-weight: 700;
    opacity: .92;
    line-height: 1.1;
}

.gtx-card .gtx-trimline {
    font-size: .88rem !important;
}

.gtx-truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gtx-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gtx-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .5rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.18);
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: .78rem;
    font-weight: 800;
    color: #222;
    user-select: none;
}

.gtx-chip-dark {
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(0,0,0,.35);
    color: #fff;
}

.gtx-open {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,.18);
    background: rgba(255,255,255,.70);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .12s ease, opacity .12s ease;
    opacity: .92;
}

    .gtx-open:hover {
        transform: scale(1.06);
        opacity: 1;
    }

/* Image area */
.gtx-media {
    position: relative;
}

    .gtx-media .ratio {
        background: rgba(0,0,0,.05);
    }

.gtx-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* SRP should look premium */
    object-position: center;
    display: block;
    transform: scale(1.001); /* prevents hairline gaps on some GPUs */
}

/* Image top-left badge row */
.gtx-badges {
    position: absolute;
    left: .55rem;
    top: .55rem;
    display: flex;
    gap: .35rem;
    z-index: 3;
    pointer-events: none; /* keeps whole card clickable */
}

/* Footer */
.gtx-footer {
    border: 0 !important;
    padding: .6rem .75rem .7rem;
}

.gtx-price {
    font-weight: 900;
    letter-spacing: .2px;
    font-size: 1.05rem;
}

.gtx-price-panel {
    display: block;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: .65rem;
    background: rgba(0,0,0,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
    padding: .45rem .55rem;
    line-height: 1.15;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

.gtx-price-panel:hover,
.gtx-price-panel:focus {
    background: rgba(0,0,0,.24);
    border-color: rgba(255,255,255,.36);
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}

.gtx-price-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    font-size: .9rem;
    white-space: nowrap;
}

.gtx-price-muted {
    opacity: .88;
    font-size: .82rem;
}

.gtx-retail-line .gtx-price-amount {
    text-decoration: line-through;
}

.gtx-transparent-line {
    border-top: 1px solid rgba(255,255,255,.28);
    margin-top: .28rem;
    padding-top: .32rem;
    font-size: 1rem;
}

.gtx-transparent-line .gtx-price-amount {
    font-size: 1.18rem;
    font-weight: 900;
}

.gtx-no-hidden-fees {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    border-radius: .45rem;
    background: rgba(20,108,67,.78);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: 5px;
}

.gtx-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .45rem;
    margin-top: .35rem;
}

.gtx-card-action {
    min-height: 34px;
    border-radius: .45rem;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.88);
    color: #1f2933;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
}

.gtx-card-action:hover,
.gtx-card-action:focus {
    color: #111827;
    background: #fff;
    text-decoration: none;
}

.gtx-card-action img {
    max-width: 78px;
    height: 18px;
    width: auto;
    display: block;
}

.gtx-meta {
    font-weight: 800;
    opacity: .95;
    font-size: .96rem;
}

.gtx-footer .very-small-text {
    color: inherit;
    opacity: .95;
}

.gtx-kv {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.gtx-divider {
    height: 1px;
    background: rgba(0,0,0,.12);
    margin: .45rem 0 .4rem;
}

/* Dark-theme friendliness if you later theme surfaces */
html.theme-grey .gtx-chip,
html.theme-pink .gtx-chip,
html.theme-purple .gtx-chip,
html.theme-metallica .gtx-chip {
    border-color: rgba(255,255,255,.22);
    background: rgba(0,0,0,.30);
    color: #fff;
}

    /* Premium ring around the LI (works great with rounded-4) */
.gtx-card-premium{
    position: relative;
    border: 0 !important;                 /* let the ring do the work */
    border-radius: 1.25rem;               /* match rounded-4 */
    overflow: visible;                    /* so glow can show */
    box-shadow: 0 12px 26px rgba(0,0,0,.18);
    transform: translateZ(0);
}

/* Outer gradient ring */
.gtx-card-premium::before{
    content:"";
    position:absolute;
    inset:-1px;                           /* ring thickness */
    border-radius: inherit;
    background: linear-gradient(135deg,
    rgba(255,255,255,.45),
    rgba(255,255,255,.10),
    rgba(0,0,0,.25)
    );
    z-index: 0;
    pointer-events: none;
}

/* Inner surface border (crisp edge) */
.gtx-card-premium::after{
    content:"";
    position:absolute;
    inset:1px;                            /* keeps ring visible */
    border-radius: calc(1.25rem - 2px);
    background: rgba(255,255,255,.03);    /* subtle inner film */
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
    z-index: 0;
    pointer-events: none;
}

/* Lift + glow on hover */
.gtx-card-premium:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

/* Make your real content sit above the ring */
.gtx-card-premium > .h-100 {
    position: relative;
    z-index: 1;
    border-radius: inherit;
    overflow: hidden;                     /* keep image corners clean */
}

@media (max-width: 575.98px) {
    .gtx-card .gtx-header {
        padding: .5rem .6rem !important;
    }

    .gtx-title {
        font-size: 1.28rem;
        line-height: 1.02;
    }

    .gtx-card .gtx-trimline {
        font-size: 1rem !important;
        line-height: 1.08 !important;
    }

    .gtx-chip {
        font-size: .86rem;
    }

    .gtx-price-panel {
        padding: .58rem .65rem;
    }

    .gtx-price-line {
        font-size: 1rem;
    }

    .gtx-price-muted {
        font-size: .9rem;
    }

    .gtx-transparent-line {
        font-size: 1.08rem;
    }

    .gtx-transparent-line .gtx-price-amount {
        font-size: 1.32rem;
    }

    .gtx-no-hidden-fees {
        font-size: .9rem;
    }

    .gtx-meta {
        font-size: 1.08rem;
    }

    .gtx-card-action {
        min-height: 40px;
        font-size: .92rem;
    }

    .gtx-card-action img {
        height: 20px;
    }
}
