<?xml version="1.0"?>
<!--
    El Ganso (Hyvä) — Image presets para PLP, PDP, related, etc.
    Tamaños 2x del render real para Retina/HiDPI (cards reales 378x504 → 756x1008).
    Cards (grid, list, related_products_content): frame=false. Las fotos son 4:5 y con marco Magento las metía en el
    3:4 con bandas blancas arriba y abajo (no cuadraban con las creatividades); sin marco la card las recorta a 3:4
    (object-fit: cover), como a las creatividades.
-->
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
    <media>
        <images module="Magento_Catalog">
            <!-- PLP grid (categorias) - cards reales 378x504 - 2x para Retina -->
            <image id="category_page_grid" type="small_image">
                <width>756</width>
                <height>1008</height>
                <frame>false</frame>
            </image>
            <image id="category_page_list" type="small_image">
                <width>756</width>
                <height>1008</height>
                <frame>false</frame>
            </image>
            <!-- Te puede interesar (Amasty Mostviewed) usa este preset -->
            <image id="related_products_content" type="small_image">
                <width>756</width>
                <height>1008</height>
                <frame>false</frame>
            </image>
            <!-- Related products standard ("Completa tu look") -->
            <image id="related_products_list" type="small_image">
                <width>500</width>
                <height>667</height>
            </image>
            <!-- Upsell -->
            <image id="upsell_products_list" type="small_image">
                <width>500</width>
                <height>667</height>
            </image>
            <!-- Cart minicart thumbnails -->
            <image id="cart_page_product_thumbnail" type="thumbnail">
                <width>165</width>
                <height>220</height>
            </image>
            <image id="mini_cart_product_thumbnail" type="thumbnail">
                <width>165</width>
                <height>220</height>
            </image>
            <!-- Hyva Checkout sidebar cart usa este id (no cart_page_product_thumbnail).
                 240x320 = 3x del display 80x100 para Retina nítido, sin frame para
                 evitar bandas blancas. -->
            <image id="product_thumbnail_image" type="thumbnail">
                <width>240</width>
                <height>320</height>
                <frame>0</frame>
            </image>
            <!-- PDP galería principal -->
            <image id="product_base_image" type="image">
                <width>1080</width>
                <height>1440</height>
            </image>
            <image id="product_page_image_large" type="image">
                <width>1440</width>
                <height>1920</height>
            </image>
            <image id="product_page_image_medium" type="image">
                <width>1080</width>
                <height>1440</height>
            </image>
            <image id="product_page_image_small" type="thumbnail">
                <width>120</width>
                <height>160</height>
            </image>
            <!-- Swatches -->
            <image id="product_swatch_image_large" type="swatch_image">
                <width>110</width>
                <height>110</height>
            </image>
            <image id="product_swatch_image_medium" type="swatch_image">
                <width>55</width>
                <height>55</height>
            </image>
            <image id="product_swatch_image_small" type="swatch_thumb">
                <width>30</width>
                <height>30</height>
            </image>
        </images>
    </media>
</view>
