/* Product Page Layout */
.pacproduct-product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-gallery {
    position: relative;
}

.product-gallery .main-image {
    margin-bottom: 20px;
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    padding: 20px;
}

.product-title {
    margin: 0 0 20px 0;
    font-size: 32px;
    color: #333;
}

.product-options {
    margin: 30px 0;
}

.color-selection,
.product-options-list,
.size-matrix,
.file-upload-section {
    margin-bottom: 30px;
}

.color-selection h3,
.product-options-list h3,
.size-matrix h3,
.file-upload-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: none;
    transition: border-color 0.2s;
}

.color-swatch:hover,
.color-swatch.active {
    border-color: #333;
}

.color-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* Product Options */
.product-options-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.option-group {
    margin-bottom: 20px;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-option input[type="radio"] {
    margin: 0;
}

/* Size Matrix */
.size-quantity-matrix {
    width: 100%;
    border-collapse: collapse;
}

.size-quantity-matrix th,
.size-quantity-matrix td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.size-quantity-matrix th {
    background: #f8f8f8;
}

.size-quantity-matrix input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* File Upload */
.file-upload-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.file-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.art-file {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.add-file-input {
    align-self: flex-start;
    padding: 8px 16px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.add-file-input:hover {
    background: #f0f0f0;
}

/* Product Actions */
.product-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pacproduct-product-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-options-list {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .add-to-cart-button,
    .send-quote-button {
        width: 100%;
    }
}

/* MOQ Alert Styling */
.moq-alert {
    background-color: #fff8f8;
    border-left: 4px solid #a00;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.4;
}

/* MOQ Info in Price Snippet */
.moq-info {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    padding: 6px 10px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.moq-info strong {
    color: #a00;
}

/* Disabled Button Styling */
.single_add_to_cart_button:disabled,
.send-quote-button:disabled,
.single_add_to_cart_button.disabled,
.send-quote-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}