/* --- DESKTOP: 4 colunas --- */
@media (min-width: 1024px) {
  .containerx {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.2rem;
    padding: 2rem;
    font-family: Arial, sans-serif;
    z-index: 9999 !important;
  }
}

/* --- TABLET + MOBILE: CARROSSEL --- */
@media (max-width: 1023px) {
  .containerx {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1.2rem;
    scroll-snap-type: x mandatory;
    font-family: Arial, sans-serif;
        z-index: 99999999;

  }

  .card {
    min-width: 330px;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
 
  }

  /* Ocultar barra de scroll (opcional) */
  .containerx::-webkit-scrollbar {
   /*   display: none;  */   /* ocultar o scroll na vitrine */
  }
}


    .card {
      background: white;
      border-radius: 1rem;
      overflow: hidden;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
    }

    .card img.card-img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }

    .tag {
      position: absolute;
      top: -15px;
      right: 10px;
      padding: 5px 10px;
      border-radius: 5px;
      font-size: 1em;
      font-weight: bold;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    }

            .logo-platform {
            width: 0px;
            position: absolute;  /*  absolute  */
            bottom: 60px;
            right: 15px;
            background: rgba(255, 255, 255, 0);
            border-radius: 10px;
            padding: 5px;
                /*        box-shadow: 0 2px 5px rgba(0,0,0,0.1);   */
            }


    .card-body {
      padding: 1rem;
      position: relative;
    }

    .card-title {
      font-weight: 600;
      font-size: 1.5em;
      margin-bottom: .5rem;
      color: #666;
      padding-left: 20px;
      padding-top: 40px;
    }

    .card-subtitle {
      color: #505452;
      font-size: 1em;
      max-height: 55px;
      overflow: hidden;
      text-overflow: ellipsis;
      padding-left: 20px;

    }

    .card-price {
      margin: 1rem 0;
      font-size: 1.3em;
      font-weight: bold;
      padding-left: 20px;
      padding-top: 20px;


    }

    .card button {
  background: linear-gradient(135deg, #128e3e, #128e3e, #128e3e);
  color: #fff;
      padding: 0.9rem 1rem;
      border: none;
      border-radius: 5px;
      width: 70%;
      margin-left: 15%;
      margin-right: 15%;
      cursor: pointer;
      margin-top: 20px;
      margin-bottom: 20px;
    }


        #modal-btn #modal-btn-text {
  background: linear-gradient(135deg, #128e3e, #128e3e, #128e3e);
  color: #fff;
      padding: 0.9rem 1rem;
      border: none;
      border-radius: 5px;
      width: 70%;
      margin-left: 15%;
      margin-right: 15%;
      cursor: pointer;
      margin-top: 20px;
      margin-bottom: 20px;

    }



    /* Modal */
    .modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: #51412ed6;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      z-index: 9999;
       font-family: Arial, sans-serif;

    }

    .modal-content {
      background: white;
      border-radius: 0rem;
      max-width: 600px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      position: relative;

    }


    #modal-title{
    color: #666;
    padding-left: 15px;
    margin-top: 30px;
        
    }
 
    #modal-subtitle{
    color: #505452;
    padding-left: 15px;
    font-size: 18px;
    margin-top: -10px;
    margin-top: 20px;
    margin-bottom: 30px;

        
    }

    #modal-desc{
    color: #666;
    padding-left: 40px;
    padding-right: 50px;
    font-size: 17px;
    letter-spacing: 1px;
    }    


    #modal-price{
    color: #222222;
    padding-left: 15px;
    font-size: 33px;
    padding-top: 40px;

    }    

 


    .modal-header img {
      width: 100%;
      border-top-left-radius: 1rem;
      border-top-right-radius: 1rem;
    }

    .modal-body {
      padding: 1rem;
    }

    .modal-close {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 3em;
      cursor: pointer;
      color: #d44e4e;
      background-color: #ffffff;
      padding:  6px 16px 6px 16px;
      border-radius: 2px;
    }

    @media(max-width: 600px) {
      .modal-content {
        max-height: 95vh;
      }
    }