/* Quick View Modal - 2 Column Layout (Image Left 200px, Details Right) */

/* Quick Action Buttons */
.myshop-quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    z-index: 10;
    position: relative;
}

.myshop-btn-details,
.myshop-btn-add {
    background-color: var(--brand-500, #000);
    color: var(--white, #fff);
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
    flex: 1;
}

.myshop-btn-details:hover,
.myshop-btn-add:hover {
    background-color: var(--brand-600, #333);
    color: var(--white, #fff);
}

/* Modal Overlay */
.myshop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.myshop-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* Modal Container - Compact 580px */
.myshop-modal-container {
    background: #fff;
    width: 95%;
    max-width: 580px !important;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* Close Button */
.myshop-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.myshop-modal-close:hover {
    color: #000;
}

/* Loading State */
.myshop-modal-loading {
    padding: 60px 20px;
    text-align: center;
    font-size: 16px;
    color: #666;
}

/* Content Layout - 2 Columns: Image Left (200px), Details Right */
.myshop-qv-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
}

/* Product Image - Left Column (Fixed 200px) */
.myshop-product-image {
    flex: 0 0200px;
    max-width: 200px;
    text-align: center;
    /* padding: 15px; */
    background: transparent;
    border-radius: 6px;
}

.myshop-product-image img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

/* Product Details - Right Column (Flexible) */
.myshop-product-details {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.myshop-qv-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #222;
    line-height: 1.3;
    width: 100%;
    margin-bottom: 5px;
}

.myshop-qv-price {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--brand-500, #000);
    width: 100%;
    margin-bottom: 0;
}

.myshop-qv-description {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #666;
    width: 100%;
}

/* WooCommerce Form */
.myshop-product-details form.cart,
.myshop-product-details form.variations_form {
    margin: 0;
}

/* Variations Table */
.myshop-product-details table.variations {
    width: 100%;
    margin-bottom: 0;
    border: none;
}

.myshop-product-details table.variations th,
.myshop-product-details table.variations td {
    padding: 8px 0;
    border: none;
    vertical-align: middle;
    font-size: 12px;
}

.myshop-product-details table.variations th {
    width: 40%;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.myshop-modal-body.woocommerce {
    display: inherit !important;
}

.myshop-qv-content .iconic-was-swatches {
    margin-top: 0 !important;
}

.myshop-product-image {}

.myshop-qv-content .stock.in-stock,
.myshop-qv-content .stock.available-on-backorder {
    margin: 0 !important;
}

.myshop-qv-content .woocommerce-variation-add-to-cart {
    justify-content: space-between;
    align-items: center;
}

.myshop-product-details table.variations td {
    width: 60%;
}

.myshop-product-details table.variations select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
}

.myshop-modal-body.woocommerce {
    display: inherit !important;
}

/* Variation Info */
.myshop-product-details .single_variation_wrap {
    margin-bottom: 15px;
}

.myshop-product-details .woocommerce-variation-price {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.myshop-product-details .woocommerce-variation-availability {
    font-size: 12px;
    margin-bottom: 12px;
}

/* Quantity Input */
.myshop-product-details .quantity {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.myshop-product-details .quantity input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

/* Add to Cart Button */
.myshop-product-details button[type="submit"],
.myshop-product-details .single_add_to_cart_button {
    /* width: 100%; */
    /* padding: 12px 16px; */
    /* font-size: 15px; */
    font-weight: 600;
    /* background: var(--brand-500, #000); */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.myshop-product-details button[type="submit"]:hover,
.myshop-product-details .single_add_to_cart_button:hover {
    background: var(--brand-600, #222);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.myshop-product-details button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Reset Variations Link */
.myshop-product-details .reset_variations {
    font-size: 11px;
    margin-top: 6px !important;
    display: inline-block;
}

/* Mobile Responsive - Stack on Small Screens */
@media (max-width: 768px) {
    .myshop-modal-container {
        width: 95%;
        max-width: 100%;
        border-radius: 0;
    }

    .myshop-qv-content {
        flex-direction: column;
        padding: 15px;
    }

    .myshop-product-image {
        flex: 1;
        max-width: 100%;
        padding: 15px;
    }

    .myshop-product-image img {
        max-height: 220px;
    }

    .myshop-product-details {
        padding: 0;
    }

    .myshop-qv-title {
        font-size: 16px;
    }

    .myshop-qv-price {
        font-size: 15px;
    }

    .myshop-product-details table.variations th,
    .myshop-product-details table.variations td {
        font-size: 11px;
    }
}