/**
* 2007-2024 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2024 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

        .ccrelated-container {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            border: 1px solid black;
            border-right: none;
            border-bottom: none;
        }

        .cardproduct {
            position: relative;
            border-right: 1px solid black;
            border-bottom: 1px solid black;
            background: white;
            overflow: hidden;
        }

        .relatedimages {
            position: relative;
            width: 100%;
            aspect-ratio: 1 / 1;
        }

        .relatedImage {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
            transition: opacity 0.3s ease;
        }

        .muestra img {
            opacity: 0;
        }

        .cardproduct:hover .muestra img {
            opacity: 1;
        }

        .cardproduct:hover .portada img {
            opacity: 0;
        }

        .relateddata {
            display: flex;
            padding-top:0;
            padding: 10px;
            text-align: left;
            justify-content: space-between;
        }

        .relatedTitle {
            text-transform: uppercase;
            font-weight: 600;
            font-size: 15px;
            margin-bottom: 4px;
        }

        .relatedFormat {
            font-size: 15px;
            color: #333;
        }

        .relatedMaterial {
            display: flex;
            flex-direction: column-reverse;
            
        }
        .sellPrice{
            font-weight: 700;
        }
        .productPrice {
            color: gray;
            text-decoration: line-through;
            font-weight: 400;
            padding-right: 6px;
            
            
        }

        .discountFlag {
            position: absolute;
            background: black;
            color: white;
            font-weight: 600;
            text-align: center;
            vertical-align: middle;
            width: 60px;
            height: 31px;
            top: 37px;
            display: flex;
            right: 0;
            align-items: center;
            justify-content: center;
        }

        @media screen and (max-width: 768px) {
            
            .relatedTitle {
                    width: 110px;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;    /* agrega "..." al final si se corta */
                    font-weight: 600;
                    font-size: 12px;
                    margin-bottom: -3px;
                }

            .relatedFormat {
                font-size: 13px;
                margin-bottom: -5px;
            }

            .relatedMaterial {
                font-size: 10px;
                flex-direction: row;
                
            }
            .ccrelated-container {
                grid-template-columns: repeat(3, 1fr);
            }

            .relateddata {
                padding: 7px;
                display: block;
                padding-top: 0px;
                margin-top: -2px;
            }

            .cardproduct:nth-of-type(n+10) {
                display: none;
            }
            .productPrice {
                font-size: 10px;
            }
            .discountFlag {
                font-weight: 400;
                width: 45px;
                height: 22px;
                top: 21px;
                left: 85px;
                font-size: 15px;
            }
        }
/*
        @media screen and (max-width: 480px) {
            .ccrelated-container {
                grid-template-columns: repeat(2, 1fr);
            }
            .cardproduct:nth-of-type(n+7) {
                display: none;
            }
        }
*/