/* Modern Test Grid Component Styles */

.test-grid-container {
    padding: 1.5rem 1rem;
}

@media (min-width: 640px) {
    .test-grid-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 1024px) {
    .test-grid-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.test-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.test-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .test-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .test-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1280px) {
    .test-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.test-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.test-card-content {
    position: relative;
    padding-top: 1.5rem;
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.test-card-image-wrapper {
    margin-bottom: 0.75rem;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.test-card:hover .test-card-image-wrapper {
    transform: scale(1.08);
}

.test-card-image {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
}

.test-card-text {
    text-align: center;
    margin-bottom: 0.75rem;
    flex: 1;
}

.test-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.test-card-title-main {
    display: block;
    margin-bottom: 0.2rem;
}

.test-card-title-sub {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.5;
}

.test-card-price {
    margin-top: 0.75rem;
}

.test-card-price strong {
    font-size: 1.125rem;
    font-weight: 800;
    color: #111827;
}

.test-card-actions {
    padding: 0 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.test-card:hover .test-card-actions {
    opacity: 1;
}

.test-card-btn {
    width: 100%;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
}

.test-card-btn-details {
    background-color: #111827;
    color: white;
}

.test-card-btn-details:hover {
    background-color: #1f2937;
}

.test-card-btn-buy {
    background-color: #f59e0b;
    color: white;
}

.test-card-btn-buy:hover {
    background-color: #d97706;
}

