.sub-titles {
  gap: 60px;
  padding: 20px 60px 50px 60px;
  display: flex;
  flex-direction: column;
  background-image: url(../../assets/images/background.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  height: 30vh;
}

.main {
  position: relative;
  height: 100vh;
}

.btns {
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 75%;
  margin: auto;
  gap: 10px;

  button {
    cursor: pointer;
    width: 30%;
    padding: 10px 20px;
    background-color: var(--background-color);
    border: 1px solid var(--background-color);
    border-radius: 10px;
    color: #fff;
    text-transform: capitalize;
    transition: 1s background-color, 1s color;

    &:hover {
      background-color: transparent;
      color: var(--background-color);
    }
  }
}

.checkout-btn {
  padding-block: 10px;

  button {
    width: 75%;
    display: block;
    margin: auto;
    padding: 10px 20px;
    color: var(--background-color);
    border: 1px solid var(--background-color);
    border-radius: 15px;
    transition: 1s background-color, 1s color;

    &:hover {
      background-color: var(--background-color);
      color: #fff;
    }
  }
}

.product {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #00000096;
  padding-block: 40px;

  .displayProduct {
    z-index: 99;
    position: relative;
    width: 60%;
    margin: auto;
    padding: 20px;
    background-color: #f1f1f1;
    border-radius: 10px;
    text-transform: capitalize;

    h2 {
      text-align: center;
      color: var(--background-color);
      font-size: 30px;
      font-weight: 500;
      font-family: "Cheltenham BT", "Goudy Old Style", serif;
    }

    form {

      .dimensions,
      .framingOptions {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
        padding-bottom: 10px;
      }

      p {
        color: var(--color);
        font-weight: bold;
        font-size: 20px;
        width: 100%;
      }

      #boxFrame_section .input,
      #doubleGlassSection .input,
      #background_section .input,
      #matting_section .input,
      .input {
        padding-block: 10px;
        width: 40%;

        input,
        select {
          border: 1px solid #f1f1f1;
          padding: 5px 10px;
          border-radius: 5px;
          width: 95%;
          margin-top: 5px;
        }
      }

      button {
        display: block;
        margin-left: auto;
        padding: 10px;
      }
    }

    .exit {
      position: absolute;
      left: 20px;
      top: 20px;
      width: 20px;
      height: 20px;
      cursor: pointer;

      button {
        background-color: transparent;
        color: var(--background-color);
        border: none;
        font-weight: 700;
        font-size: 20px;

        &:hover {
          color: #fff;
        }
      }
    }
  }
}

.visible {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sub-titles {
    height: auto;
    padding: 30px;
  }

  .btns {
    width: 90%;
    justify-content: center;
  }

  .btns button {
    width: 45%;
    margin: 5px;
  }
}

@media (max-width: 425px) {
  .sub-titles {
    padding: 20px;
  }

  .btns {
    width: 100%;
  }

  .btns button {
    width: 100%;
    margin: 5px 0;
  }

  .checkout-btn button {
    width: 90%;
  }
}