.qsr-wrapper {
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    clear: both;
}

.qsr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.qsr-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    position: relative;
    padding-left: 0.75rem;
    line-height: 1.3;
}

.qsr-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    border-radius: 2px;
    background-color: #0277bd;
}

.qsr-grid {
    display: grid;
    grid-template-columns: repeat(var(--qsr-cols, 4), minmax(0, 1fr));
    gap: 1rem;
}

.qsr-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.qsr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    border-color: #bae6fd;
}

.qsr-thumb-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: var(--qsr-ratio, 1 / 1);
    overflow: hidden;
    background-color: #f8fafc;
}

.qsr-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.qsr-card:hover .qsr-thumb {
    transform: scale(1.05);
}

.qsr-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
}

.qsr-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 0.85rem;
    text-align: center;
}

.qsr-name {
    margin: 0 0 0.5rem;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.38;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.qsr-name a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.qsr-name a:hover {
    color: #0277bd;
}

.qsr-price-box {
    margin-top: auto;
    margin-bottom: 0.75rem;
    min-height: 1.45rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
}

.qsr-price-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
}

.qsr-price-sale {
    font-size: 1.05rem;
    font-weight: 700;
    color: #d32f2f;
}

.qsr-price-contact {
    font-size: 0.96rem;
    font-weight: 700;
    color: #d32f2f;
}

.qsr-unit {
    font-size: 0.85rem;
    font-weight: 500;
    color: #b71c1c;
}

.qsr-price-old {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.qsr-btn-detail {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0277bd;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.qsr-price-box + .qsr-btn-detail {
    margin-top: 0;
}

.qsr-btn-detail:hover {
    background-color: #0277bd;
    border-color: #0277bd;
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .qsr-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .qsr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .qsr-body {
        padding: 0.65rem;
    }

    .qsr-name {
        font-size: 0.9rem;
    }

    .qsr-price-sale,
    .qsr-price-contact {
        font-size: 0.95rem;
    }
}
