/* =====================================================
   Product Catalog - Shared Styles
   Used by QuickPT, ControlMaterial, and ProficiencyTests
   ===================================================== */

/* Product Card Base */
.product-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* Product Link */
.product-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: #f8f9fa;
    overflow: hidden;
}

/* Showcase Layout - Fixed height like ProficiencyTests */
.product-showcase .product-image-wrapper {
    padding-top: 0;
    height: 180px; /* Fixed height instead of ratio */
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform .2s ease;
}

/* Showcase Layout - Moderate padding */
.product-showcase .product-image {
    padding: 15px;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    z-index: 1;
}

/* Product Content */
.product-content {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Showcase Layout - Moderate Content Padding */
.product-showcase .product-content {
    padding: 14px 14px 16px;
}

.product-code {
    font-size: .75rem;
    color: #6c757d;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Showcase Layout - Larger Code */
.product-showcase .product-code {
    font-size: .85rem;
    margin-bottom: 8px;
}

.product-name {
    font-size: .95rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Showcase Layout - Moderate Product Name */
.product-showcase .product-name {
    font-size: 1rem;
    min-height: 45px;
    margin-bottom: 10px;
}

/* Product Info (Price and Cart Button Container) */
.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.06);
}

/* Product Price */
.product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
}

/* Showcase Layout - Moderate Price */
.product-showcase .product-price {
    font-size: 1.1rem;
}

/* Add to Cart Button */
.btn-add-cart-icon {
    border-radius: 999px;
    padding: .35rem .55rem;
    line-height: 1;
}

/* Showcase Layout - Larger Button */
.product-showcase .btn-add-cart-icon {
    padding: .45rem .65rem;
}

.btn-add-cart-icon i {
    font-size: .9rem;
}

/* Showcase Layout - Larger Icon */
.product-showcase .btn-add-cart-icon i {
    font-size: 1rem;
}
