/* Color Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.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;
}

/* Price Table */
.price-table-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.price-table-content {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.close-price-table {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #333;
}

.close-price-table:hover {
    color: #000;
}

.bulk-price-breaks {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.bulk-price-breaks th,
.bulk-price-breaks td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.bulk-price-breaks th {
    background: #f8f8f8;
}

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

.option-group {
    margin-bottom: 1.5rem;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

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

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

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

/* Quote Summary */
.quote-summary-content {
    margin-top: 2em;
}

.quote-summary-content h3 {
    margin-bottom: 0.5em;
}

.quote-intro {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 1.5em;
}

.file-upload-section {
    margin-bottom: 2em;
    padding: 1.5em;
    background: #f8f8f8;
    border-radius: 4px;
}

.summary-section {
    padding: 1.5em;
    background: #f5f5f5;
    border-radius: 4px;
}

.summary-totals {
    margin: 1em 0;
}

.summary-actions {
    margin-top: 1.5em;
    display: flex;
    gap: 1em;
}

.summary-actions button {
    flex: 1;
}

.price-table-modal .price-table-content {
    padding: 2em;
    max-width: 500px;
    margin: 2em auto;
    background: white;
    border-radius: 8px;
    position: relative;
}

.close-price-table {
    position: absolute;
    right: 1em;
    top: 1em;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0.2em 0.5em;
}

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

.file-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

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

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

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

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .product-options-list {
        grid-template-columns: 1fr;
    }

    .summary-actions button {
        flex: none;
        width: 100%;
    }
}

.pacproduct-product-page .product-image {
    max-width: 300px;
    margin: 0 auto;
}

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

.savings-message {
    font-size: 0.9em;
    color: #2f4f4f;
    margin-bottom: 1.5em;
    font-weight: 500;
}

.savings-message a {
    margin-left: 0.5em;
    color: #0066cc;
    text-decoration: none;
}

.savings-message a:hover {
    text-decoration: underline;
}

/* Quote Modal */
#quote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.quote-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quote-modal-header {
    margin-bottom: 20px;
}

.quote-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.quote-modal-body {
    margin-bottom: 20px;
}

.quote-form-group {
    margin-bottom: 15px;
}

.quote-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.quote-form-group input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.quote-modal-footer {
    text-align: right;
}

.quote-modal-footer button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.quote-modal-footer .cancel-button {
    background-color: #f1f1f1;
    color: #333;
    margin-right: 10px;
}

.quote-modal-footer .submit-button {
    background-color: #0073aa;
    color: #fff;
}

/* Summary Block */
.summary-block {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.summary-block h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.summary-section {
    margin-bottom: 15px;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.summary-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-section li {
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

/* Price Display */
.price-display {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.price-display .unit-price,
.price-display .total-price {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.price-display .total-qty {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

/* Buttons */
.add-to-cart-button,
.send-quote-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.add-to-cart-button {
    background-color: #0073aa;
    color: #fff;
    margin-right: 10px;
}

.add-to-cart-button:hover {
    background-color: #005177;
}

.send-quote-button {
    background-color: #f1f1f1;
    color: #333;
}

.send-quote-button:hover {
    background-color: #e1e1e1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quote-modal-content {
        width: 95%;
        padding: 20px;
    }

    .add-to-cart-button,
    .send-quote-button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .add-to-cart-button {
        margin-right: 0;
    }
}

/* Hide unwanted elements for custom products */
.woocommerce-cart .product-type-simple[data-product_tag*="acf-options"] {
    /* Hide sale badge */
    .onsale,
    .save-amount {
        display: none !important;
    }

    /* Hide short description */
    .product-short-description {
        display: none !important;
    }

    /* Hide quantity inputs */
    .quantity {
        display: none !important;
    }
}

/* Clean up meta display */
.woocommerce-cart-form__cart-item {
    /* Hide short description */
    .woocommerce-product-details__short-description,
    p.Short.Desc,
    .short-description {
        display: none !important;
    }

    /* Hide quantity selector */
    .quantity {
        display: none !important;
    }

    /* Hide sale badge and savings */
    .onsale,
    .save-amount,
    span[class*="save"] {
        display: none !important;
    }

    /* Clean up meta display */
    dl.variation {
        dt, dd {
            margin: 0 4px 0 0;
            padding: 0;
            display: inline-block;
        }
        
        dt {
            font-weight: bold;
            &:after {
                content: ": ";
            }
        }
        
        dd {
            margin-right: 1em;
        }
    }

    /* Hide duplicate meta */
    .item-meta:not(:first-of-type) {
        display: none !important;
    }
}

/* Force price display */
.woocommerce-cart-form__cart-item {
    .product-price,
    .product-subtotal {
        .amount {
            font-weight: bold;
            font-size: 1.1em;
            color: #333;
        }
    }
} 