/**
 * Product Card CSS
 * 
 * Styles for the custom product card display.
 * 
 * @package PacProduct
 */

/* Image should be reasonably sized */
.pacproduct-main-image {
    width: 100%; 
    height: auto;
    display: block;
    margin-bottom: 0.5em;
}

/* Swatch row: align items nicely */
.pacproduct-color-swatches {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
}

.pacproduct-color-swatches img.pacproduct-swatch {
    width: 20px;
    height: 20px;
    margin-right: 4px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.pacproduct-color-count {
    display: inline-block;
    width: 20px; 
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #eee;
    border-radius: 3px;
    color: #333;
    font-size: 0.9em;
}

/* Title and size */
.pacproduct-card-title {
    font-size: 1.1em;
    margin: 0.2em 0;
    font-weight: bold;
    color: #000;
}

.pacproduct-card-title a {
    color: #000;
    text-decoration: none;
}

.pacproduct-card-title a:hover {
    color: #000;
    text-decoration: underline;
}

.pacproduct-size-range {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

/* Price snippet */
.pacproduct-price-snippet {
    margin: 0.3em 0;
}

.pacproduct-price-snippet .amount {
    font-weight: bold;
    margin-right: 0.2em;
}

.pacproduct-price-snippet .price-note {
    margin-right: 0.5em;
}

.view-price-table {
    text-decoration: underline;
    font-size: 0.9em;
}

/* Rush and MOQ messages */
.pacproduct-rush-message {
    color: #c33;
    font-weight: bold;
    margin: 0.2em 0;
}

.pacproduct-moq {
    color: #333;
    font-size: 0.9em;
}

/* Price table modal */
.price-table-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-table-content {
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-price-table {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
}

.bulk-price-breaks {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.bulk-price-breaks th, 
.bulk-price-breaks td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.bulk-price-breaks th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Hide Add to Cart button on product cards */
.product_tag-acf-options .add_to_cart_button,
.product_tag-acf-options .button.product_type_simple,
.product_tag-acf-options .button.add_to_cart_button {
    display: none !important;
} 