<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="empty" />
    <update handle="page_calendar"/>
    <body>
        <container name="quickview_area" htmlTag="div" htmlClass="quickview-wrap column main zoom-anim-dialog" />
        <referenceContainer name="quickview_area">
            <block class="Magento\Framework\View\Element\Js\Components" name="head.components" as="quickview_components" template="Magento_Theme::js/components.phtml" before="-">
                <block class="Magento\Framework\View\Element\Js\Components" name="checkout_page_head_components" template="Magento_Catalog::js/components.phtml" />
            </block>

            <container name="product.info.media" htmlTag="div" htmlClass="product media" after="product.info.main">
                <block class="Magento\Framework\View\Element\Template" name="skip_gallery_after.target" before="skip_gallery_before.wrapper" template="Magento_Theme::html/skiptarget.phtml">
                    <arguments>
                        <argument name="target_id" xsi:type="string">gallery-prev-area</argument>
                    </arguments>
                </block>
                <container name="skip_gallery_before.wrapper" htmlTag="div" htmlClass="action-skip-wrapper">
                    <block class="Magento\Framework\View\Element\Template" before="product.info.media.image" name="skip_gallery_before" template="Magento_Theme::html/skip.phtml">
                        <arguments>
                            <argument name="target" xsi:type="string">gallery-next-area</argument>
                            <argument name="label" translate="true" xsi:type="string">Skip to the end of the images gallery</argument>
                        </arguments>
                    </block>
                </container>
                <block class="Magento\Catalog\Block\Product\View\Gallery" name="product.info.media.image" template="MageBig_QuickView::product/view/gallery.phtml"/>
                <container name="skip_gallery_after.wrapper" htmlTag="div" htmlClass="action-skip-wrapper">
                    <block class="Magento\Framework\View\Element\Template" after="product.info.media.image" name="skip_gallery_after" template="Magento_Theme::html/skip.phtml">
                        <arguments>
                            <argument name="target" xsi:type="string">gallery-prev-area</argument>
                            <argument name="label" translate="true" xsi:type="string">Skip to the beginning of the images gallery</argument>
                        </arguments>
                    </block>
                </container>
                <block class="Magento\Framework\View\Element\Template" name="skip_gallery_before.target" after="skip_gallery_after.wrapper" template="Magento_Theme::html/skiptarget.phtml">
                    <arguments>
                        <argument name="target_id" xsi:type="string">gallery-next-area</argument>
                    </arguments>
                </block>
            </container>

            <container name="quickview_tabs_area" htmlTag="div" htmlClass="quickview-tabs" htmlId="quickview-tabs">
                <block class="MageBig\QuickView\Block\QuickView" name="quickview_tabs" template="quickview.tabs.phtml" before="-" >
                </block>
            </container>

            <container name="product.info.main" htmlTag="div" htmlClass="product-info-main">
                <block name="product.info.main.content" class="MageBig\QuickView\Block\QuickView" template="quickview.content.phtml" group="quickview_tabs">
                    <arguments>
                        <argument translate="true" name="title" xsi:type="string">Main</argument>
                        <argument name="html_id" xsi:type="string">quickview-info-main</argument>
                        <argument name="html_class" xsi:type="string">product-info-main</argument>
                    </arguments>
                    <block class="Magento\Theme\Block\Html\Title" name="page.main.title" template="Magento_Theme::html/title.phtml" />
                    <referenceBlock name="page.main.title">
                        <arguments>
                            <argument name="css_class" xsi:type="string">product quickview-title</argument>
                        </arguments>
                    </referenceBlock>

                    <block class="Magento\Catalog\Block\Product\View" name="product.info.review" template="product/view/review.phtml" after="product.info.stock.sku" />

                    <container name="product.info.price" label="Product info auxiliary container" htmlTag="div" htmlClass="product-info-price" after="product.info.review">
                        <block class="Magento\Catalog\Pricing\Render" name="product.price.final" before="product.info.sku">
                            <arguments>
                                <argument name="price_render" xsi:type="string">product.price.render.default</argument>
                                <argument name="price_type_code" xsi:type="string">final_price</argument>
                                <argument name="zone" xsi:type="string">item_view</argument>
                            </arguments>
                        </block>
                        <container name="product.info.stock.sku" label="Product auxiliary info" htmlTag="div" htmlClass="product-info-stock-sku">
                            <container name="product.info.type" before="-" />
                            <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.sku" template="product/view/attribute.phtml" after="product.info.type">
                                <arguments>
                                    <argument name="at_call" xsi:type="string">getSku</argument>
                                    <argument name="at_code" xsi:type="string">sku</argument>
                                    <argument name="css_class" xsi:type="string">sku</argument>
                                    <argument name="at_label" xsi:type="string">default</argument>
                                    <argument name="add_attribute" xsi:type="string">itemprop="sku"</argument>
                                </arguments>
                            </block>
                        </container>
                        <block class="Magento\Catalog\Block\Product\View" name="product.info.view.more" template="MageBig_QuickView::product/view/view-more.phtml" after="-" />
                    </container>

                    <block class="Magento\Catalog\Pricing\Render" name="product.price.tier" after="product.info.price">
                        <arguments>
                            <argument name="price_render" xsi:type="string">product.price.render.default</argument>
                            <argument name="price_type_code" xsi:type="string">tier_price</argument>
                            <argument name="zone" xsi:type="string">item_view</argument>
                        </arguments>
                    </block>

                    <container name="alert.urls" as="alert_urls" label="Alert Urls" after="product.price.tier"/>

                    <block class="Magento\Catalog\Block\Product\View" name="product.info" template="product/view/form.phtml" after="alert.urls">
                        <container name="product.info.form.content" as="product_info_form_content">
                            <block class="Magento\Catalog\Block\Product\View" name="product.info.addtocart" as="addtocart" template="product/view/addtocart.phtml"/>
                        </container>
                        <block class="Magento\Framework\View\Element\Template" name="product.info.form.options" as="options_container">
                            <block class="Magento\Catalog\Block\Product\View" name="product.info.options.wrapper" as="product_options_wrapper" template="product/view/options/wrapper.phtml">
                                <block class="Magento\Catalog\Block\Product\View\Options" name="product.info.options" as="product_options" template="product/view/options.phtml">
                                    <block class="Magento\Catalog\Block\Product\View\Options\Type\DefaultType" as="default" template="product/view/options/type/default.phtml"/>
                                    <block class="Magento\Catalog\Block\Product\View\Options\Type\Text" as="text" template="product/view/options/type/text.phtml"/>
                                    <block class="Magento\Catalog\Block\Product\View\Options\Type\File" as="file" template="product/view/options/type/file.phtml"/>
                                    <block class="Magento\Catalog\Block\Product\View\Options\Type\Select" as="select" template="product/view/options/type/select.phtml"/>
                                    <block class="Magento\Catalog\Block\Product\View\Options\Type\Date" as="date" template="product/view/options/type/date.phtml"/>
                                </block>
                                <block class="Magento\Framework\View\Element\Html\Calendar" name="html_calendar" as="html_calendar" template="Magento_Theme::js/calendar.phtml"/>
                            </block>
                            <block class="Magento\Catalog\Block\Product\View" name="product.info.options.wrapper.bottom" as="product_options_wrapper_bottom" template="product/view/options/wrapper/bottom.phtml">
                                <block class="Magento\Catalog\Block\Product\View" name="product.info.addtocart.additional" as="product.info.addtocart" template="product/view/addtocart.phtml"/>
                            </block>
                        </block>
                    </block>

                    <container name="product.info.extrahint" as="extrahint" label="Product View Extra Hint">
                        <container name="product.info.social" label="Product social links container" htmlTag="div" htmlClass="product-social-links" after="product.info.overview">
                            <block class="Magento\Catalog\Block\Product\View" name="product.info.addto" as="addto" template="product/view/addto.phtml"/>
                            <block class="Magento\Catalog\Block\Product\View" name="product.info.mailto" template="product/view/mailto.phtml"/>
                        </container>
                    </container>

                    <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.overview" template="product/view/attribute.phtml" group="detailed_info" after="product.info.extrahint">
                        <arguments>
                            <argument name="at_call" xsi:type="string">getShortDescription</argument>
                            <argument name="at_code" xsi:type="string">short_description</argument>
                            <argument name="css_class" xsi:type="string">overview</argument>
                            <argument name="at_label" translate="true" xsi:type="string">none</argument>
                            <argument name="title" translate="true" xsi:type="string">Overview</argument>
                            <argument name="add_attribute" xsi:type="string">itemprop="description"</argument>
                        </arguments>
                    </block>
                </block>
            </container>
        </referenceContainer>

        <referenceContainer name="quickview_area">
            <block class="Magento\Framework\View\Element\FormKey" name="formkey"/>
            <block class="Magento\Catalog\Block\Product\View\Additional" name="product.info.additional" as="product_additional_data"/>
            <block class="Magento\Cookie\Block\RequireCookie" name="require-cookie" template="Magento_Cookie::require_cookie.phtml">
                <arguments>
                    <argument name="triggers" xsi:type="array">
                        <item name="compareProductLink" xsi:type="string">.action.tocompare</item>
                    </argument>
                </arguments>
            </block>
        </referenceContainer>

        <referenceBlock name="product.info.addtocart">
            <block class="Magento\Catalog\Block\ShortcutButtons\InCatalog" name="addtocart.shortcut.buttons"/>
        </referenceBlock>
        <referenceBlock name="product.info.addtocart.additional">
            <block class="Magento\Catalog\Block\ShortcutButtons\InCatalog" name="addtocart.shortcut.buttons.additional"/>
        </referenceBlock>

        <referenceContainer name="product.info.media">
            <block class="Magento\ProductVideo\Block\Product\View\Gallery" name="product.info.media.video" after="product.info.media.image" template="MageBig_QuickView::product/view/gallery.video.phtml"/>
        </referenceContainer>

        <referenceContainer name="product.info.extrahint">
            <block class="Magento\CatalogInventory\Block\Qtyincrements" name="product.info.extrahint.qtyincrements" template="qtyincrements.phtml"/>
        </referenceContainer>


        <referenceBlock name="product.info.mailto" remove="true" />
        <referenceBlock name="product.info.addto" remove="true" />

        <referenceBlock name="product.info.addtocart">
            <block class="Magento\Wishlist\Block\Catalog\Product\View\AddTo\Wishlist" name="view.addto.wishlist"
                   template="Magento_Catalog::product/view/addto/wishlist.phtml" />
        </referenceBlock>
        <referenceBlock name="product.info.addtocart.additional">
            <block class="Magento\Wishlist\Block\Catalog\Product\View\AddTo\Wishlist" name="view.addto.wishlist.bottom"
                   template="Magento_Catalog::product/view/addto/wishlist.phtml" />
        </referenceBlock>

        <referenceContainer name="quickview_area">
            <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.wrap" template="Magento_Catalog::product/view-info.phtml" before="-">
                <block class="Magento\Catalog\Block\Product\View" name="product.info.social.share" template="Magento_Catalog::product/view/social.phtml" after="-" />
            </block>
        </referenceContainer>
        <move element="product.info.main" destination="product.info.wrap" />
        <move element="product.info.media" destination="product.info.wrap" />
        <move element="page.main.title" destination="product.info.wrap" />
        <move element="product.info.review" destination="product.info.wrap" />
        <move element="product.info.sku" destination="product.info.wrap" />
        <move element="product.info.stock.sku" destination="product.info.price" after="product.price.final" />
        <move element="product.info.overview" destination="product.info.price" after="product.info.stock.sku" />

        <referenceBlock name="product.price.render.bundle.customization">
            <arguments>
                <argument name="price_label" xsi:type="string" translate="true">Price as configured</argument>
                <argument name="price_render" xsi:type="string">product.price.render.default</argument>
                <argument name="price_type_code" xsi:type="string">configured_price</argument>
                <argument name="zone" xsi:type="string">item_view</argument>
            </arguments>
        </referenceBlock>

        <referenceBlock name="product.info.addtocart.bundle">
            <block class="Magento\Wishlist\Block\Catalog\Product\View\AddTo\Wishlist" name="view.addto.wishlist.bundle"
                   template="Magento_Catalog::product/view/addto/wishlist.phtml" />
        </referenceBlock>
        <referenceBlock name="customize.button" remove="true" />
        <referenceBlock name="bundle.back.button" remove="true" />
        <referenceBlock name="bundle.product.view.options.notice" remove="true" />
        <move element="bundle.options.container" destination="product.info.main" />
        <move element="product.price.render.bundle.customization" destination="bundle.summary" before="-"/>


        <referenceContainer name="quickview_modal" remove="true" />

        <referenceContainer name="product.info.media">
            <block class="Magento\Catalog\Block\Product\View\Description" name="product.discount.percent" template="Magento_Catalog::product/view/discount_percent.phtml" after="-" />
        </referenceContainer>
    </body>
</page>
