/*--- LIST RESULTS ---*/
.results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

  /* Product & Ingredients */
  .result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--darkerGrape);
    border-radius: 5px;
    transition: 
      border .3s ease,
      color .3s ease,
      box-shadow .6s ease;
    text-decoration: none;
    box-sizing: border-box;
  }

  .result:hover {
    border: 1px solid var(--lightMint);
  }

    .result:active {
      border: 1px solid var(--darkMint);;
    }

      .small-photo {
        display: inline-flex;
        flex: 0 0 auto;
      }

        .small-photo svg {
          width: 6rem;
          height: 6rem;
          fill: rgba(0,0,0,0.15);
          transition: fill .6s ease;
        }

          .result:hover .small-photo svg {
            fill: var(--lightMint);
          }
        
          .result:active .small-photo svg {
            fill: var(--darkMint);;
          }
        

        .small-photo img {
          display: block;
          width: 6rem;
          height: 6rem;
          border-radius: 50%;
          transition: box-shadow .6s ease;
        }

          .result:hover .small-photo img {
          }
        
          .result:active .small-photo img {
            box-shadow: none;
          }

      .result-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
      }

        .result-info p {
          margin-bottom: 0;
        }


/*--- DETAILS ---*/

.page-head {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 800px) {
  .page-head {
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      gap: 2rem;
  }  
}

  .photo-large {
      display: flex;
      flex: 0 0 auto;
      width: max-content;
  }

    .photo-large svg {
      width: 12rem;
      height: 12rem;
      fill: rgba(0,0,0,0.15);
    }

    .photo-large img {
        width: 12rem;
        height: 12rem;
        object-fit: cover;
        border-radius: 50%;
    }

    .photo-large .komphee-logo {
        padding: 1rem;
        box-sizing: border-box;
    }

    @media (max-width: 800px) { 
        .photo-large img {
            width: 18rem;
            height: 18rem;
            object-fit: cover;
        }

        .photo-large .komphee-logo {
            padding: 2rem;
            box-sizing: border-box;
        }
    }

    @media (max-width: 640px) {
        .photo-large img {
            width: calc(100vw - 4rem);
            height: calc(100vw - 4rem);
            object-fit: cover;
        }

        .photo-large .komphee-logo {
            padding: 2rem;
            box-sizing: border-box;
        }
    }
  
  .page-details {
      display: flex;
      flex-direction: column;
      flex: 1 1 auto;
      width: 100%;
      gap: 1rem;
  }

    .page-details * p {
        margin: 0;
    }

      /* Product Tags */
      .tags {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 1rem;
        gap: .5rem;
      }
  
        .tag {
          padding: 0 .5rem;
          background-color: var(--lightMint);
          color: var(--darkestGrape);
          border-radius: 3px;
          font-size: .875rem;
          font-weight: 500;
          line-height: 2rem;
          white-space: nowrap;
          cursor: default;
        }

        .tag:hover {
          background-color: var(--darkMint);
          color: var(-darkestestGrape);
        }

        .section-of-sections {
          display: flex;
          flex-direction: row;
          gap: 2rem;
        }
        
            .section-of-sections section {
                flex: 1 1 100%;
            }
        
        @media (max-width: 800px) {
            .section-of-sections {
                flex-direction: column;
            }
        }

            /* Ingredients Safety */
            .ingredients-header,
            .ingredient-safety {
              display: flex;
              flex-direction: row;
              align-items: center;
              min-width: 30%;
              gap: 1rem;
            }
    
            .ingredients-header {
              width: 100%;
              justify-content: space-between;
            }
    
              .ingredient-safety {
                gap: .5rem;
              }

              .summary {
                font-size: .875rem;
                margin: 1rem 0 0 0;
              }
    
            @media (max-width: 640px) {
              .ingredients-header {
                justify-content: flex-start;
                align-items: flex-start;
                flex-direction: column;
                gap: .5rem;
              }
    
                .ingredient-safety {
                  align-items: flex-start;
                  flex-direction: column;
                  width: 100%;
                }
            }

            .safety {
                position: relative;
                width: 100%;
                height: 1rem;
                margin-top: .5rem;
                border-radius: .5rem;
                background: linear-gradient(90deg, var(--red) 0%, var(--yellow) 50%, var(--mint) 100%);
            }

            .safety::after {
                display: block;
                content: '';
                position: absolute;
                top: -.25rem;
                width: .25rem;
                border-radius: .125rem;
                height: 1.5rem;
                background-color: white;
                box-shadow: 0px 0px 10px var(--darkGrape);
                transform: translateX(0);
            }

            /* Safety Animation */
            .ingredient-1::after {animation: safety-1 1s ease-in-out forwards;}
            .ingredient-2::after {animation: safety-2 1s ease-in-out forwards;}
            .ingredient-3::after {animation: safety-3 1s ease-in-out forwards;}
            .ingredient-4::after {animation: safety-4 1s ease-in-out forwards;}
            .ingredient-5::after {animation: safety-5 1s ease-in-out forwards;}

            @keyframes safety-1 {
                from {left: 5%;}
                to {left: 5%;}
            }

            @keyframes safety-2 {
              from {left: 0;}
              to {left: 25%;}
            }

            @keyframes safety-3 {
              from {left: 0;}
              to {left: 50%;}
            }

            @keyframes safety-4 {
              from {left: 0;}
              to {left: 75%;}
            }

            @keyframes safety-5 {
              from {left: 5%;}
              to {left: 95%;}
            }
            
  /* Ingredients - Product Highlights */
  .product-highlights {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-top: 1rem;
    }
    
      .product-highlights > * {
          flex: 1 1 100%;
      }

      .product-highlights-wrapper{
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 1rem;
      }

        @media (max-width: 960px) {
          .product-highlights-wrapper{
            flex-direction: column;
          }
    
        }

        .product-highlights-details {

        }


    .no-results {
      display: flex; 
      flex-direction: row; 
      justify-content: center; 
      align-items: center;
      gap: 4rem;
    }

      .no-results img {
        width: 40%;
        height: auto;
        animation: float 10s linear infinite;
        transform-origin: center center;
      }

      .no-results > div {
        width: 30%; 
        text-align: left;
      }

      .no-results > div h1 {
        text-align: left; 
        font-weight: bold; 
        margin-bottom: .5rem; 
        color: var(--lightMint); 
        line-height: 1.1;
      }

      .no-results > div h4 {
        text-align: left; 
        margin-bottom: 1rem; 
      }

      @keyframes float {
        0% {
          transform: translate(-2%, -2%) rotate(0deg) translate(2%, 2%) rotate(0deg);
        }
        100% {
          transform: translate(-2%, -2%) rotate(360deg) translate(2%, 2%) rotate(-360deg);
        }
      }

    @media (max-width: 1280px) {
      .no-results {
        flex-direction: column; 
        gap: 2rem;
      }
  
        .no-results img {
          width: 60%;
        }
  
        .no-results > div {
          width: 60%; 
        }
  
        .no-results > div h1 {
          margin-bottom: 1rem; 
          color: var(--lightMint); 
          line-height: 1.1;
        }
  
        .no-results > div h4 {
          text-align: left; 
          margin-bottom: 0rem; 
        }
    }

    @media (max-width: 640px) {
      .no-results {
        flex-direction: column; 
        gap: 2rem;
        padding: 2rem;
      }
  
        .no-results img {
          width: 100%;
        }
  
        .no-results > div {
          width: 100%;
        }
  
        .no-results > div h1 {
          margin-bottom: 1rem; 
          color: var(--lightMint); 
          line-height: 1.1;
        }
  
        .no-results > div h4 {
          text-align: left; 
          margin-bottom: 0rem; 
        }
    }