/* fonte */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/*estilos gerais*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  outline: none;
  font-family: var(--fontInter);
}

html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;

  ::selection {
    background-color: var(--lightPink);
    color: #fff;
  }
}

::-webkit-scrollbar {
  width: 3px;
  background-color: #deb6b76b;
}

::-webkit-scrollbar-thumb {
  background-color: var(--lightPink);
}

.btn-close {
  position: absolute;
  top: 20px;
  right: 20px;

  button {
    background-color: var(--darkPink);
    border-radius: 5px;
    border: none;
    padding: 2px 2px 0 2px;
    cursor: pointer;

    &:hover {
      background-color: #a57f82;
    }
  }
}

/* variáveis */
:root {
  --fontInter: "Inter", sans-serif;
  --lightPink: #deb6b7;
  --darkPink: #bd8f93;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
  min-height: 100vh;

  .container {
    width: 450px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    .news-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background-color: rgba(141, 107, 110, 0.8);
      backdrop-filter: blur(5px);
      padding: 20px 10px;
      z-index: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #fff;

      .news-text-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;

        .close-news {
          position: absolute;
          top: 8px;
          right: 10px;

          .btn-close-news {
            background: transparent;
            border: none;
            cursor: pointer;
          }
        }

        span {
          font-weight: 700;
          display: flex;
          align-items: center;
          gap: 5px;
          font-size: 1.1rem;
          color: rgb(255, 233, 234);

          p {
            font-weight: 400;
            color: rgb(214, 191, 192);
          }
        }

        .top {
          display: flex;
          align-items: center;
          gap: 15px;
        }

        a {
          color: rgb(235, 216, 217);
        }
      }
    }

    .head {
      width: 100%;
      min-height: 20vh;
      background: linear-gradient(
        90deg,
        var(--lightPink) 0%,
        var(--darkPink) 100%
      );
      position: relative;

      .logo-dolcci {
        position: absolute;
        bottom: -100px;
        left: 30px;
        background-color: #faf3f6;
        padding: 10px;
        border-radius: 50%;

        img {
          width: 180px;
          border-radius: 100px;
          filter: brightness(110%);
        }
      }
    }

    .content {
      background: url(imgs/background.png);
      background-size: cover;
      width: 100%;
      min-height: 100vh;
      padding: 120px 30px 0 30px;

      .presentation {
        border-bottom: 1px solid #000;
        padding-bottom: 15px;

        h1 {
          font-size: 1.7rem;
        }

        p {
          font-size: 1.1rem;
        }

        h1,
        p {
          margin-bottom: 20px;
        }
      }

      .sweets {
        padding: 30px 0 50px 0;

        .our-sweets {
          position: relative;
          margin-bottom: 20px;

          .donut {
            width: 15px;
            transform: translateY(1px);
          }

          .vector {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 160px;
          }
        }

        .sw-container {
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          justify-content: space-between;
          gap: 50px;

          .sw-all {
            display: flex;
            justify-content: space-between;
            gap: 20px;

            img {
              padding: 12px 12px 100px 12px;
              background-color: #fff;
              border-radius: 10px;
              box-shadow: 0 2px 4px #00000041;
            }

            .sw-info {
              display: flex;
              flex-direction: column;
              align-items: start;
              justify-content: space-between;

              ul {
                display: flex;
                flex-direction: column;
                gap: 2px;
                li {
                  font-size: 0.98rem;
                  margin-left: 15px;
                }
              }

              .btn-see-more {
                border: none;
                background-color: transparent;

                a {
                  color: var(--darkPink);
                  font-size: 0.95rem;
                }
              }

              .btn-order {
                padding: 8px 20px;
                border-radius: 50px;
                background-color: #fff;
                border: 2px solid #000;
                font-weight: 600;
                cursor: pointer;
                font-size: 0.9rem;
                transition: 0.2s ease;

                &:hover {
                  background-color: #000;
                  color: #fff;
                }
              }
            }
          }

          .sw-enrolado,
          .sw-bala {
            flex-direction: row-reverse;
          }

          .sw-bala {
            width: 100%;
            justify-content: space-between;

            img {
              box-shadow: 0 2px 25px 2px rgba(136, 110, 112, 0.51);
            }

            .sw-info {
              justify-content: start;
              gap: 20px;
            }
          }
        }
      }
    }
  }

  /* footer */
  footer {
    background-color: var(--darkPink);
    padding: 5px 0px;
    text-align: center;
    color: #fff;

    p {
      font-size: 0.9rem;
    }
  }

  /* detalhes dos sabores (veja mais); modal cart */
  .details-flavors-content,
  .modal-cart-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 3;

    .details-flavors {
      width: 350px;
      background-color: #fff;
      padding: 35px 30px;
      border-radius: 10px;
      visibility: hidden;
      opacity: 0;
      position: relative;
      pointer-events: all;
      transition: 0.2s ease;

      h4 {
        letter-spacing: 5px;
        text-transform: uppercase;
        font-weight: 400;
        color: var(--darkPink);
      }

      h2 {
        width: 150px;
        font-size: 1.6rem;
        border-bottom: 1px solid #000;
        padding-bottom: 10px;
      }

      ul {
        margin: 15px 0 0px 25px;
        display: flex;
        flex-direction: column;
        gap: 5px;

        li::marker {
          color: var(--darkPink);
          border: 1px solid #000;
        }
      }
    }
  }

  .mask {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000000c7;
    backdrop-filter: blur(2px);
    z-index: 2;
    visibility: hidden;
  }

  /*! modal cart */
  .modal-cart-container {
    .modal-cart-content {
      width: 350px;
      background-color: #fff;
      padding: 35px 30px;
      border-radius: 10px;
      position: relative;
      pointer-events: all;
      flex-direction: column;
      gap: 10px;
      visibility: hidden;
      opacity: 0;
      transition: 0.2s ease;

      h2 {
        max-width: 120px;
        padding-bottom: 10px;
        border-bottom: 1px solid #000;
        margin-bottom: 15px;
      }

      .dropdowns-items {
        display: flex;
        flex-direction: column;
        gap: 5px;

        details {
          border: 1px solid rgba(0, 0, 0, 0.2);
          border-radius: 5px;
          padding: 5px 10px;
          max-height: 125px;
          position: relative;
          color: rgb(37, 37, 37);

          summary {
            font-weight: bold;
            outline: none;
            list-style: none;
            position: relative;
          }

          summary::-webkit-details-marker {
            display: none;
          }

          summary::after {
            content: "►";
            /* Ícone customizado */
            color: var(--darkPink);
            font-weight: bold;
            position: absolute;
            right: 0;
          }

          .item {
            border-top: 1px solid #00000070;
            margin-top: 3px;
            padding: 5px;
            display: flex;
            justify-content: space-between;
            gap: 5px;
            color: #000;

            .add-to-cart-btn {
              min-width: 25px !important;
              height: 20px;
              background-color: #000000;
              border: none;
              border-radius: 2px;
              cursor: pointer;
              transition: 0.2s ease;

              &:hover {
                background-color: var(--darkPink);
              }

              i {
                color: #fff;
                font-weight: bold;
              }
            }
          }
        }

        details[open] summary::after {
          content: "▼ ";
          /* Ícone alterado quando aberto */
        }

        details[open] {
          overflow-y: scroll;
        }
      }

      .cart-resume {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 25px;

        #cart-items {
          padding: 5px 10px;
          border: 1px solid #0000003f;
          display: flex;
          flex-direction: column;
          gap: 5px;
        }

        button {
          max-width: 150px;
          height: 35px;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 5px;
          font-size: 0.95rem;
          font-weight: 500;
          border-radius: 5px;
          border: 2px solid #000;
          cursor: pointer;
          background-color: #fff;
          transition: background 0.2s ease, color 0.2s ease;

          &:hover {
            background-color: #000;
            color: #fff;
          }
        }

        .resume-info {
          display: flex;
          justify-content: space-between;
          align-items: center;
          gap: 10px;

          button {
            min-width: 30px;
            height: 25px;
            background-color: #ff0000;
            border: none;

            i {
              color: #fff;
            }
          }
        }
      }
    }
  }
}
