.product {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.card {
    width: min(920px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: flex-start;
}

@media (max-width: 800px) {
    .card {
        grid-template-columns:1fr;
    }
}

.media {
    background: #fafafa;
    background-size: 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1;
}

.content {
    padding: 24px;
}

.brand {
    font-size: 14px;
    color: #666;
    margin: 0 0 6px;
}

h1 {
    font-size: clamp(20px, 3.2vw, 28px);
    margin: 0 0 8px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 12px 0 20px;
    font-weight: 600;
}

.now {
    font-size: clamp(20px, 3vw, 26px);
}

.old {
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    margin-left: auto;
}

.desc {
    color: #333;
    white-space: pre-line;
}

.meta {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    font-size: 14px;
    color: #222;
    grid-template-columns: 1fr;
}

.row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: self-start;
}

.name {
    color: #555;
    flex: 1;
    min-width: 50px;
}

.val {
    flex: 2;
    min-width: 200px;
}

.footer {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 16px;
    font-size: 12px;
    color: #666;
}

.actions {
    display: flex;
    margin-top: 8px;
    justify-content: center;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .2s ease-in-out;
    min-width: 120px;
    width: 80%;
}

.btn.cta {
    background: var(--btn-bg);
    color: var(--btn-text);
    box-shadow: 0 6px 18px var(--btn-box-shadow)
}

.btn.cta:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.btn.cta:hover {
    background-color: black;
    color: white;
}

/* Tiles grid */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tile-gap);
    justify-content: center;
    width: 100%;

}

.tile {
    overflow: hidden;
    isolation: isolate;
    width: 30vw;
    max-width: 250px;
    min-width: 160px;
    border-radius: var(--radius);
    background: var(--header-bg);
    color: var(--header-text);
    box-shadow: var(--shadow);
}

.tile h2 {
    margin: 0 0 8px;
    font-size: clamp(12px, 2vw, 20px)
}

.tile p {
    margin: 0;
    color: var(--text);
    font-size: clamp(8px, 1vw, 12px)
}

.tile .thumb {
    width: 30vw;
    max-width: 250px;
    min-width: 200px;
    max-height: 200px;
    flex: 0 0 auto;
    background-size: cover;
}

.tile .thumb img {
    width: 30vw;
    height: 20vh;
    max-width: 250px;
    min-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.product-info {
    padding: var(--tile-pad);
    background: var(--header-bg);
    color: var(--header-text);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 350px) {
    .tile {
        width: 100%;
        max-width: 250px!important;
    }
    .tile .thumb {
        width: 100%!important;
        max-width: 250px!important;
        max-height: 100px!important;
    }
    .tile .thumb img {
        width: 100%!important;
        max-width: 250px!important;
        max-height: 100px!important;
    }
}
